<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
<title>{{$pageTitle}}-{{$site[title]}}</title>
<META NAME="ROBOTS" CONTENT="INDEX,FOLLOW">
<meta name="Keywords" content="{{if $seokeywords}}{{$seokeywords}}{{else}}{{$site[seokeywords]}}{{/if}}" />
<meta name="Description" content="{{if $seodescription}}{{$seodescription}}{{else}}{{$site[seodescription]}}{{/if}}" />
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
  <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
{{$this->Html->meta('icon')}}
{{$this->Html->css(array(
            // 'bootstrap.min.css',
             Router::url('/stylevars/getcss'),
           'ui-customer',
           'taobao/css'
        ));
}}

{{$this->Html->script(array(
            //'http://lib.sinaapp.com/js/jquery/1.5.2/jquery.min.js',
            'jquery/jquery.min.js',
            'jquery/jquery.cookie.js',        
            'i18n/language-zh-CN.js',
            'bootstrap.min.js',
            'front.js',
            'common.js',
             'taobao/taobaoke.js','jquery/jquery.masonry.min.js','jquery/jquery.infinitescroll.min.js',
            'jquery/jquery.lazyload.js',
            'jquery/jquery.jgrowl.min.js'
        ));
}}
<script src="http://a.tbcdn.cn/apps/top/x/sdk.js?appkey=12336677"></script>
{{if !empty($_SESSION['Auth']['Staff']) }}
<!-- 当为后台登陆后，才加载jquery ui，与模板编辑的js -->
{{$this->Html->script(array(
            'jquery/jquery-ui-1.8.23.custom.min.js',           
            'portlet.js',   
            'ckeditor/ckeditor.js',
            'swfupload/swfupload.js',
            'swfupload/swfupload.queue.js',
			'swfupload/swfupload.cookies.js',
            'swfupload/fileprogress.js',
            'swfupload/handlers.js',       
        ));
}}
<script type="text/javascript">
var viewFileName = "{{$viewfile_for_layout}}";
var current_controller = "{{$current_controller}}";
var current_model = "{{$current_model}}";
var current_action = "{{$current_action}}";
var current_pass = "{{implode('/',$current_pass)}}";
</script>
{{else}}
	{{$this->Html->script(array(
	            //'jquery/jquery-ui-1.8.12.front.min.js', 
	        ));
	}}
{{/if}}
<script type="text/javascript">
var BASEURL = "{{APP_SUB_DIR}}";
var ADMIN_BASEURL = BASEURL+"/manage";
</script>
</head>
<body>

{{if !empty($_SESSION['Auth']['Staff']) }}
<div class="flash ui-wedget" id="fsUploadProgress" style="position:absolute;width:210px;top:80px;right:30px; z-index: 10000000;">
			<!-- This is where the file progress gets shown.  SWFUpload doesn\'t update the UI directly.
						The Handlers (in handlers.js) process the upload events and make the UI updates -->
</div> 
{{/if}}


<div id="header" >
<div class="container clearfix">
 <div class="row">
  <div class="span7"> 
  <a style="FLOAT: left" href="{{$this->Html->url('/')}}">{{$this->Html->image('logo.png', array('height'=>45,'style'=>'margin-top: 30px;','title' => $site[title],'alt' => $site[title]))}}</A>
 
  </div>
  <div class="span17" style="text-align:right;">
      {{if defined('APPEND_LOCALE_BASE')}}
      {{$this->Html->link('简体','/../')}}, {{$this->Html->link('繁体','/../zh-tw/')}}，{{$this->Html->link('英文版','/../en-us/')}}
      {{else}}
  {{$this->Html->link('简体','/')}}, {{$this->Html->link('繁体','/zh-tw/')}}，{{$this->Html->link('英文版','/en-us/')}}
	  {{/if}}
		<div>
		{{$this->Html->link('Cart','/carts/listcart.html')}}
		</div>
   {{template users/current_user}}
  </div>
 </div>
</div>
	<div class="container clearfix" >			
		{{template menus/bootstrap}}
		<div  class="span24">
		{{template Elements/navigation_header}}
		</div>
	</div>	
	<div  class="clear"></div>
</div>

<div id="maincontent" class="maincontent  clearfix">
   <div class="container">
   <?php
        echo $this->Session->flash();
    ?>
    {{$content_for_layout}}
   </div>
</div>

{{template Elements/footer}}

</body>
</html>